package com.emergency.assist.dao;

import com.emergency.assist.domain.OrderAssign;
import com.emergency.base.domain.Plan;
import com.emergency.base.domain.PlanDetail;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * Created by qiuyan.pei on 2020/4/26.
 */
public interface OrderAssignDao extends JpaRepository<OrderAssign,Long>, JpaSpecificationExecutor<OrderAssign> {
    @Query("select rp from OrderAssign rp where order.id=:orderId")
    List<OrderAssign> findByOrder(@Param("orderId") Long orderId);
}
